﻿@model WeatheRx.Web.Models.Search.SearchResultsPageViewModel

    <div class="row">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">Jobs that matched "@Model.SearchTerm"</h4>
                <div class="btn-block top-right">
                    <a href="@Url.Action("Index", "Search")" class="btn btn-info btn-sm">
                        <div class="glyphicon glyphicon-search"></div>
                        Advanced Search
                    </a>
                </div>
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-condensed table-hover table-striped">
                        <thead>
                            <tr>
                                <th>Owner Name</th>
                                <th>Property</th>
                                <th>Id</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach (var job in Model.Applicants)
                            {
                                <tr>
                                    <td> @job.FirstName</td>
                                    <td> @job.LastName</td>
                                    <td>@job.StreetNumber @job.StreetName</td>
                                </tr>
                            }
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>